vcCamera
vcCamera provides the capability of controlling a virtual camera and its view for an environment.
See in: Overview
Module: vcCore
Parent: vcObject
Children -
Referenced by: vcWorld.findCamera()
Properties
Learn how to use properties here. The properties are also inherited from the parent class.
| Name | Type | Access | Description |
| CenterOfInterest | vcVector | RW | Gets or sets camera's center of interest location. |
| ClipFar | Real | RW | Gets or sets how far objects can be from a camera in order to be displayed. If objects are too far then they are not visible. |
| ClipNear | Real | RW | Gets or sets how close objects can be to a camera in order to be displayed. If objects are too close then they are not visible. |
| ClippingMethod | vcClippingMode | RW | Gets or sets the clipping mode for a camera's view. |
| Eye | vcVector | RW | Gets or sets camera's eye location. |
| Matrix | vcMatrix | R | Gets the whole camera matrix. |
| Name | String | RW | Gets or sets the name of the camera. |
Example: Define Cameras Eye and Center of Interest
""" This example shows how to move camera by defining camera's eye and center of interest """ import vcCore as vc app = vc.getApplication() vec = vc.vcVector camera = vc.getWorld().findCamera() camera_eye_vector = vec.new(5000,5000,2000) camero_coi_vector = vec.new(0,0,0) #tip: set coi first, and then set eye of camera camera.CenterOfInterest = camero_coi_vector camera.Eye = camera_eye_vector app.render()